<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: QQtPictureTabBar Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_q_qt_picture_tab_bar-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QQtPictureTabBar Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for QQtPictureTabBar:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_q_qt_picture_tab_bar.png" usemap="#QQtPictureTabBar_map" alt=""/>
  <map id="QQtPictureTabBar_map" name="QQtPictureTabBar_map">
<area href="class_q_qt_tab_bar.html" title="The QQtTabBar class 用于解决QtTabWidget接口上的错误。 " alt="QQtTabBar" shape="rect" coords="0,56,116,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a0b76c94636d995100cfc0bdf32f3adc1"><td class="memItemLeft" align="right" valign="top"><a id="a0b76c94636d995100cfc0bdf32f3adc1"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>IconStyle</b> { <br />
&#160;&#160;<b>IconStyle_Top_And_BottomText</b>, 
<b>IconStyle_Bottom_And_TopText</b>, 
<b>IconStyle_Left_And_RightText</b>, 
<b>IconStyle_Right_And_LeftText</b>, 
<br />
&#160;&#160;<b>IconStyle_MiddleText</b>, 
<b>ColorStyle_Left_And_RightText</b>, 
<b>IconStyle_Max_Style</b>
<br />
 }</td></tr>
<tr class="separator:a0b76c94636d995100cfc0bdf32f3adc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a906226a9eb5cc72d54a04568b76ce496"><td class="memItemLeft" align="right" valign="top"><a id="a906226a9eb5cc72d54a04568b76ce496"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>QQtPictureTabBar</b> (QWidget *parent=0)</td></tr>
<tr class="separator:a906226a9eb5cc72d54a04568b76ce496"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b6083132fd0e70cd85dabbde863406f"><td class="memItemLeft" align="right" valign="top"><a id="a6b6083132fd0e70cd85dabbde863406f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setLayoutSpacing</b> (int spacing=0)</td></tr>
<tr class="separator:a6b6083132fd0e70cd85dabbde863406f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2554105d66022b8a2ea35966782bc637"><td class="memItemLeft" align="right" valign="top"><a id="a2554105d66022b8a2ea35966782bc637"></a>
IconStyle&#160;</td><td class="memItemRight" valign="bottom"><b>getIconStyle</b> () const</td></tr>
<tr class="separator:a2554105d66022b8a2ea35966782bc637"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc5c055dcc3156b8acbc3222f5bbc169"><td class="memItemLeft" align="right" valign="top"><a id="adc5c055dcc3156b8acbc3222f5bbc169"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setIconStyle</b> (IconStyle iconStyle)</td></tr>
<tr class="separator:adc5c055dcc3156b8acbc3222f5bbc169"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75e42ec79228e9cb7ce7bddd375b5816"><td class="memItemLeft" align="right" valign="top">QColor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_picture_tab_bar.html#a75e42ec79228e9cb7ce7bddd375b5816">getBackgroundColor</a> () const</td></tr>
<tr class="separator:a75e42ec79228e9cb7ce7bddd375b5816"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0d433202a4d1003d7662cd81c83a30e"><td class="memItemLeft" align="right" valign="top"><a id="af0d433202a4d1003d7662cd81c83a30e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setBackgroundColor</b> (QColor backgroundColor)</td></tr>
<tr class="separator:af0d433202a4d1003d7662cd81c83a30e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf6d6296deb24c0cd93e0460adfe87ab"><td class="memItemLeft" align="right" valign="top"><a id="abf6d6296deb24c0cd93e0460adfe87ab"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>tabPixmap</b> (int index, QImage &amp;img, QImage &amp;imgSel)</td></tr>
<tr class="separator:abf6d6296deb24c0cd93e0460adfe87ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee9082b2cdb2058e2dae59568cc73302"><td class="memItemLeft" align="right" valign="top"><a id="aee9082b2cdb2058e2dae59568cc73302"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setTabPixmap</b> (int index, const QString &amp;img=QString(), const QString &amp;imgSel=QString())</td></tr>
<tr class="separator:aee9082b2cdb2058e2dae59568cc73302"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31191f17557f0b1842eeb5dea0d91b0e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_picture_tab_bar.html#a31191f17557f0b1842eeb5dea0d91b0e">tabIcon</a> (int index, QImage &amp;icon, QImage &amp;iconSel)</td></tr>
<tr class="separator:a31191f17557f0b1842eeb5dea0d91b0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1089bf2aca1bcf11554d6a0c4ff8a3d7"><td class="memItemLeft" align="right" valign="top"><a id="a1089bf2aca1bcf11554d6a0c4ff8a3d7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setTabIcon</b> (int index, const QString &amp;icon=QString(), const QString &amp;iconSel=QString())</td></tr>
<tr class="separator:a1089bf2aca1bcf11554d6a0c4ff8a3d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a901182ffd1fb99aa17daaa4e502aa1f0"><td class="memItemLeft" align="right" valign="top"><a id="a901182ffd1fb99aa17daaa4e502aa1f0"></a>
QFont&#160;</td><td class="memItemRight" valign="bottom"><b>getTextFont</b> () const</td></tr>
<tr class="separator:a901182ffd1fb99aa17daaa4e502aa1f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac83981a15fe697e4eee95eee83f5292b"><td class="memItemLeft" align="right" valign="top"><a id="ac83981a15fe697e4eee95eee83f5292b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setTextFont</b> (QFont textFont)</td></tr>
<tr class="separator:ac83981a15fe697e4eee95eee83f5292b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49e040f55e491723dd5a5b64835465df"><td class="memItemLeft" align="right" valign="top"><a id="a49e040f55e491723dd5a5b64835465df"></a>
QColor&#160;</td><td class="memItemRight" valign="bottom"><b>getTextColor</b> () const</td></tr>
<tr class="separator:a49e040f55e491723dd5a5b64835465df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2579ec8ccb9fe1e7408b0fea4577cdb2"><td class="memItemLeft" align="right" valign="top"><a id="a2579ec8ccb9fe1e7408b0fea4577cdb2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setTextColor</b> (QColor textColor)</td></tr>
<tr class="separator:a2579ec8ccb9fe1e7408b0fea4577cdb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae95fdf9ace15dfd9279e8656e6f073b7"><td class="memItemLeft" align="right" valign="top"><a id="ae95fdf9ace15dfd9279e8656e6f073b7"></a>
QColor&#160;</td><td class="memItemRight" valign="bottom"><b>getSelectedTextColor</b> () const</td></tr>
<tr class="separator:ae95fdf9ace15dfd9279e8656e6f073b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90f408c8ee7fa4dc29abbaefa646bfd0"><td class="memItemLeft" align="right" valign="top"><a id="a90f408c8ee7fa4dc29abbaefa646bfd0"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setSelectedTextColor</b> (QColor selectedTextColor)</td></tr>
<tr class="separator:a90f408c8ee7fa4dc29abbaefa646bfd0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_q_qt_tab_bar"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_q_qt_tab_bar')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_q_qt_tab_bar.html">QQtTabBar</a></td></tr>
<tr class="memitem:aa15f619520c3707c7cbc90f5cb1c2c05 inherit pub_methods_class_q_qt_tab_bar"><td class="memItemLeft" align="right" valign="top"><a id="aa15f619520c3707c7cbc90f5cb1c2c05"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>QQtTabBar</b> (QWidget *parent=0)</td></tr>
<tr class="separator:aa15f619520c3707c7cbc90f5cb1c2c05 inherit pub_methods_class_q_qt_tab_bar"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a5b5811fa2ceb14c8290c8f1ba00fb498"><td class="memItemLeft" align="right" valign="top"><a id="a5b5811fa2ceb14c8290c8f1ba00fb498"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>paintEvent</b> (QPaintEvent *)</td></tr>
<tr class="separator:a5b5811fa2ceb14c8290c8f1ba00fb498"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f30bafdbbfeba0ecf60864552fd2676"><td class="memItemLeft" align="right" valign="top"><a id="a7f30bafdbbfeba0ecf60864552fd2676"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>drawBackground</b> (QPainter *p)</td></tr>
<tr class="separator:a7f30bafdbbfeba0ecf60864552fd2676"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a716761f4a4b2429504e1ffdbefecae3c"><td class="memItemLeft" align="right" valign="top"><a id="a716761f4a4b2429504e1ffdbefecae3c"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>drawPicture</b> (QPainter *p)</td></tr>
<tr class="separator:a716761f4a4b2429504e1ffdbefecae3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1edc04b21445775ebf636374a5ac060e"><td class="memItemLeft" align="right" valign="top"><a id="a1edc04b21445775ebf636374a5ac060e"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>drawColor</b> (QPainter *p)</td></tr>
<tr class="separator:a1edc04b21445775ebf636374a5ac060e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f9646631867941f138662a500b0d16c"><td class="memItemLeft" align="right" valign="top"><a id="a4f9646631867941f138662a500b0d16c"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>drawIcon</b> (QPainter *p)</td></tr>
<tr class="separator:a4f9646631867941f138662a500b0d16c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a037d9d7521c46db264f34acef3062c33"><td class="memItemLeft" align="right" valign="top"><a id="a037d9d7521c46db264f34acef3062c33"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>drawText</b> (QPainter *p)</td></tr>
<tr class="separator:a037d9d7521c46db264f34acef3062c33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_q_qt_tab_bar"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_q_qt_tab_bar')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="class_q_qt_tab_bar.html">QQtTabBar</a></td></tr>
<tr class="memitem:a73e9ea2f2ec44d4430fc23c880be93c8 inherit pro_methods_class_q_qt_tab_bar"><td class="memItemLeft" align="right" valign="top"><a id="a73e9ea2f2ec44d4430fc23c880be93c8"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>verticalTabs</b> ()</td></tr>
<tr class="separator:a73e9ea2f2ec44d4430fc23c880be93c8 inherit pro_methods_class_q_qt_tab_bar"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a75e42ec79228e9cb7ce7bddd375b5816"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75e42ec79228e9cb7ce7bddd375b5816">&#9670;&nbsp;</a></span>getBackgroundColor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QColor QQtPictureTabBar::getBackgroundColor </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>背景部分，这里设置的是Tab的背景图 </p>

</div>
</div>
<a id="a31191f17557f0b1842eeb5dea0d91b0e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31191f17557f0b1842eeb5dea0d91b0e">&#9670;&nbsp;</a></span>tabIcon()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QQtPictureTabBar::tabIcon </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QImage &amp;&#160;</td>
          <td class="paramname"><em>icon</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QImage &amp;&#160;</td>
          <td class="paramname"><em>iconSel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Icon部分，这里设置的是Tab里的Icon 不设置背景则显示icon </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/exquisite/<a class="el" href="qqtpicturetabbar_8h_source.html">qqtpicturetabbar.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/exquisite/qqtpicturetabbar.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
